package com.lin.cms.domain;

import java.io.Serializable;

public class Sensitivity implements Serializable {

	private static final long serialVersionUID = 1L;

	private int sensitivityId;

	private String search;

	private String replacement;

	public Sensitivity() {
	}

	public int getSensitivityId() {
		return sensitivityId;
	}

	public void setSensitivityId(int sensitivityId) {
		this.sensitivityId = sensitivityId;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}

	public String getReplacement() {
		return replacement;
	}

	public void setReplacement(String replacement) {
		this.replacement = replacement;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + sensitivityId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Sensitivity other = (Sensitivity) obj;
		if (sensitivityId != other.sensitivityId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"sensitivityId=" + "'" + sensitivityId + "'" + 
			")";
	}
	
}
